package com.iona.domain;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;

@Entity
public class Purview extends BaseEntity {
	
	private String name;
	@Column(length = 2000)
	private String description;
	@Column(length = 2000)
	private String wayOfMark;
	@OneToMany
	@JoinColumn(name = "purview_fk")
	private List<DisciplinePurview> disciplineList;
	@OneToMany
	@JoinColumn(name = "purviewpartdis_fk")
	private List<PartDisPurview> partdisList;

	public List<PartDisPurview> getPartdisList() {
		if(partdisList == null){
		partdisList = createList();
		}
		return partdisList;
	}

	public void setPartdisList(List<PartDisPurview> partdisList) {
		this.partdisList = partdisList;
	}

	public List<DisciplinePurview> getDisciplineList() {
		if(disciplineList == null){
		disciplineList = createList();
		}
		return disciplineList;
	}

	public void setDisciplineList(List<DisciplinePurview> disciplineList) {
		this.disciplineList = disciplineList;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String desc) {
		this.description = desc;
	}

	public String getWayOfMark() {
		return wayOfMark;
	}

	public void setWayOfMark(String wayOfMark) {
		this.wayOfMark = wayOfMark;
	}

}
